<?php

namespace App\Controllers;

use App\Controllers\Controller;
use App\Middleware\AdminAuthMiddleware;

class HomeController extends Controller
{

    public function __construct()
    {
        $this->middleware('admin.auth');
    }

    /*
     * 首页
     */
    public function getIndex()
    {
        return view('index', ['str' => 'test']);
    }

    /*
     * 测试页
     */
    public function getTest()
    {
        return view('test');
    }

}
